import React from 'react';
import { useSelector } from 'react-redux';
import { GlobalState } from '@/store';
import { Alert, Result } from '@arco-design/web-react';
import styles from './style/index.module.less';


function Welcome() {
  const userInfo = useSelector((state: GlobalState) => state.userInfo);

  return (
    <div>
      <Alert type="success" content="登陆成功" />

      <div className={styles.wrapper}>
        <Result
          className={styles.result}
          status="success"
          title="登陆成功"
          subTitle={userInfo && userInfo.name}
        />
      </div>
    </div>
  );
}

export default Welcome;
